<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3</title>
</head>
<body>
    <script>
        var hero = prompt("输入英雄");
        var leval = prompt('输入等级');
        console.log(typeof leval);
        console.log("你输入的英雄"+ hero +"现在等级是"+leval);
    </script>
</body>
</html>